package com.schoolET.entity;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 微信用户与区域关联表
 * </p>
 *
 * @author le
 * @since 2024-06-06
 */
@Getter
@Setter
@TableName("wechat_and_region")
@ApiModel(value = "WechatAndRegion对象", description = "微信用户与区域关联表")
public class WechatAndRegion implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("唯一标识符")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("微信用户ID")
    private Integer wechatId;

    @ApiModelProperty("区域ID")
    private Integer regionId;

    @ApiModelProperty("默认地址 默认为0")
    private Integer defaultLocation;

    @ApiModelProperty("创建时间")
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    @ApiModelProperty("更新时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;
}
